<%@page contentType="text/html; charset=UTF-8" %>
<%@page import="com.sq.partner.manager.mybatis.model.FacadePayment" %>
<html>
<head>
    <title>支付请求接口</title>
    <meta http-equiv="pragma" content="no-cache"/>

</head>
<body onload="loginExchange()">
跳转中....
</body>
</html>
<script>
    function loginExchange() {
        var url = "${payUrl}";
        var transNo = "${payment.transNo}";
        var transDate = "${transDate}";
        var requestCode = "${payment.requestCode}";
        var comCode = "${payment.comCode}";
        var payID = "${payment.payId}";
        var transAmt = "${payment.transAmt}";
        var payName = "${payment.payName}";
        var pageRetUrl = "${pageRetUrl}";
        var bgRetUrl = "${bgRetUrl}";
        var remark = "${payment.remark}";
        var checkValue = "${checkValue}";
        var charSet = 'UTF-8';
        var p = {
        	transNo: transNo,
        	transDate: transDate,
        	requestCode: requestCode,
        	comCode: comCode,
        	payID: payID,
        	transAmt: transAmt,
        	payName: payName,
        	pageRetUrl: pageRetUrl,
        	bgRetUrl: bgRetUrl,
        	remark: remark,
        	checkValue: checkValue,
        	charSet:charSet
        };
        var myForm = document.createElement("form");
        myForm.method = "post"
        myForm.action = url
        for (var k in p) {
            var myInput = document.createElement("input")
            myInput.setAttribute("name", k)
            myInput.setAttribute("value", p[k]);
            myForm.appendChild(myInput)
        }
        document.body.appendChild(myForm)
        myForm.submit()
        document.body.removeChild(myForm)
    }
</script>